<com:TPanel CssClass="portlet">
	<com:TPanel CssClass="loginportlet">
		<com:TPanel DefaultButton="LoginButton" GroupingText="<%[Login]%>" CssClass="LoginPortlet">
			<table width="100%">
				<tr>
					<td colspan="2"><%[Username]%></td>
				</tr>
				<tr>
				<td colspan="2">
					<com:TTextBox ID="Username" />
					<com:TRequiredFieldValidator ControlToValidate="Username" ValidationGroup="login" Text="<%[...is required]%>" Display="Dynamic"/>
					<com:TCustomValidator ControlToValidate="Password" ValidationGroup="login" Text="<%[Username is invalid]%>" Display="Dynamic" OnServerValidate="validateUserName" />
				</td>
				</tr>
				<tr>
					<td colspan="2"><%[Password]%></td>
				</tr>
				<tr>
					<td colspan="2">
						<com:TTextBox ID="Password" TextMode="Password" />
						<com:TRequiredFieldValidator ControlToValidate="Password" ValidationGroup="login" Text="<%[...is required]%>" Display="Dynamic"/>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<com:TCheckBox ID="RememberMe" Text="<%[Remember me]%>" />
					</td>
				</tr>
				<tr>
					<td colspan="2"><hr/></td>
				</tr>
				<tr>
					<td><com:TPortalLinkButton ID="LoginButton" Text="<%[Login]%>" CausesValidation="true" ValidationGroup="login" CssClass="link-button" OnClick="loginButtonClicked" /></td>
					<td width="80%" style="text-align:right;">
							<com:THyperLink Text="<%[Register]%>" NavigateUrl=<%= $this->Service->constructUrl('System.NewUser') %> Visible=<%= TPropertyValue::ensureBoolean($this->Application->Parameters['MultipleUser']) %> CssClass="link-button" />
					</td>
				</tr>
				<tr>
					<td colspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td width="100%" colspan="2" style="text-align: center;">
						<com:TPortalHyperLink Id="ForgottenPassword" CssClass="link-button" Text="<%[Forgotten password]%>" NavigateUrl=<%= $this->Service->constructUrl('System.ForgottenPassword') %> />
					</td>
				</tr>
			</table>
		</com:TPanel>
	</com:TPanel>
</com:TPanel>